// 自动生成模板MarksBill
package autocode

import (
	"time"

	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// MarksBill 结构体
// 如果含有time.Time 请自行import time包
type MarksBill struct {
	global.GVA_MODEL
	UserName   string     `json:"userName" form:"userName" gorm:"column:user_name;comment:用户名字;size:50;"`
	OpenId     string     `json:"openId" form:"openId" gorm:"column:open_id;comment:用户openID;size:100;"`
	Source     string     `json:"source" form:"source" gorm:"column:source;comment:来源或消费;size:255;"`
	Num        *int       `json:"num" form:"num" gorm:"column:num;comment:数量;size:10;"`
	UserId     *int       `json:"userId" form:"userId" gorm:"column:user_id;comment:用户id;size:19;"`
	Type       *int       `json:"type" form:"type" gorm:"column:type;comment:（1-消费；2-增加）;size:10;"`
	Channel    *int       `json:"channel" form:"channel" gorm:"column:channel;comment:（1-滑雪积分；2-农场；3-签到积分；4-邀请；5分享；6-小程序；7-答题;8-积分兑换；9-积分抽奖）;size:10;"`
	CreateTime *time.Time `json:"createTime" form:"createTime" gorm:"column:create_time;comment:;"`
	InviteId     *int       `json:"inviteId" form:"inviteId" gorm:"column:invite_id;comment:邀请人id;size:19;"`
	StartData  *time.Time `form:"startData"`
	EndData    *time.Time `form:"endData"`
}

// TableName MarksBill 表名
func (MarksBill) TableName() string {
	return "marks_bill"
}
